<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 小帅
  Date: 2021/9/17
  Time: 18:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/admin.css">
    <script src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="eidt"><strong><span class="icon-pencil-square-o"></span>修改用户信息</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="${pageContext.request.contextPath}/userServlet?method=eidtPage">
            <div class="form-group">
                <div class="label">
                    <label>用户名：</label>
                </div>
                <div class="field">
                    <input type="hidden" value="${param.userid}" name="userid" />
                    <input type="text" class="input w50" value="${param.username}" name="username" data-validate="required:请输入用户名" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>密码：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="password" value="${param.password}" data-validate="required:请输入密码" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>年龄：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="age" value="${param.age}" data-validate="member:只能为数字"  />
                    <div class="tips"></div>
                </div>
            </div>

            <if condition="$iscid eq 1">
                <div class="form-group">
                    <div class="label">
                        <label>性别：</label>
                    </div>
                    <div class="field">
                        <select name="sex" class="input w50">
                            <option name="sex" value="男" <c:if test="${param.sex.equals('男')}">selected="selected" </c:if>>男</option>
                            <option name="sex" value="女" <c:if test="${param.sex.equals('女')}">selected="selected"</c:if>>女</option>
                        </select>
                        <div class="tips"></div>
                    </div>
                </div>
            </if>

            <div class="form-group">
                <div class="label">
                    <label>权限：</label>
                </div>
                <div class="field" style="padding-top:8px;">
                    管理员 <input name="role"  type="radio" <c:if test="${param.role.contains('管理员')}">checked="checked"</c:if> value="管理员" />
                    老师 <input name="role"  type="radio" <c:if test="${param.role=='老师'}">checked="checked"</c:if> value="老师" />
                    学生 <input name="role"  type="radio" <c:if test="${param.role=='学生'}">checked="checked"</c:if>  value="学生"  />
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit">确定修改</button>
                </div>
            </div>
        </form>
    </div>
</div>


</body>
</html>
